package cn.edu.nchu.dao;

import cn.edu.nchu.entity.DeviceModel;
import org.springframework.data.jpa.repository.JpaRepository;

public interface DeviceModelDao extends JpaRepository<DeviceModel, Integer> {
    DeviceModel findByDeviceId(String deviceId);
    DeviceModel saveAndFlush(DeviceModel deviceModel);
    DeviceModel deleteByDeviceId(String deviceId);
}
